package tech.wangpai.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class MyListener implements ServletRequestListener {
    Logger logger = LoggerFactory.getLogger(getClass());
    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        logger.info("MyListener>>>requestInitialized");
    }

    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        logger.info("MyListener>>>requestDestroyed");
    }
}

